package Demo1.operation;

import Demo1.Book.Booklist;

public class ExitOperation  implements  IOperation{
    @Override
    public void work(Booklist booklist) {
        System.out.println("退出系统");
        System.exit(0);
        int cuurentSize = booklist.getUsedSize();
        for (int i = 0; i < cuurentSize; i++) {
            booklist.setBooks(i,null);
        }
        booklist.setUsedSize(0);
    }
}
